package com.team.app.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.team.app.dao.FeedbackDao;
import com.team.app.model.Feedback;


@Service
public class FeedbackServiceImpl implements FeedbackService{
	@Autowired
    private FeedbackDao feedbackDao;     

	@Override
	@Transactional		
	public Long create(Feedback obj) {
		// TODO Auto-generated method stub
		return feedbackDao.create(obj);
	}
	@Override
	@Transactional
	public void edit(Feedback obj) {
		// TODO Auto-generated method stub
		feedbackDao.edit(obj);
	}
	@Override
	@Transactional
	public void remove(Feedback obj) {
		// TODO Auto-generated method stub
		feedbackDao.remove(obj);
	}

	@Override
	@Transactional
	public Feedback find(Object id) {
		// TODO Auto-generated method stub
		return feedbackDao.find(id);
	}
	@Override
	@Transactional
	public List<Feedback> findAll() {
		// TODO Auto-generated method stub
		return feedbackDao.findAll();
	}

	@Override
	@Transactional
	public List<Feedback> findRange(int[] range) {
		// TODO Auto-generated method stub
		return feedbackDao.findRange(range);
	}

	@Override
	@Transactional
	public Long count() {
		// TODO Auto-generated method stub
		return feedbackDao.count();
	} 
}
